package com.forclass;

public class FactoryTest {
    public static void main(String[] args) {
        IBook1920 iBook1 = Factory1.getInstance("com.forclass.MathBook2");
        iBook1.read();
        IBook1920 iBook2 = Factory1.getInstance("com.forclass.ProgramBook2");
        iBook2.read();
    }
}
